package com.hgg.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by hgg on 2018/7/18.
 */
@Configuration
public class RabbitMqConfig {

    @Bean
    public Queue queue1(){
        System.out.println("queue-hgg1初始化");
        return new Queue("hgg1");
    }
    @Bean
    public Queue queue2(){
        System.out.println("queue-hgg2初始化");
        return new Queue("hgg2");
    }
}
